```js
// MyComponent.stories.js

import MyComponent from './MyComponent.svelte';

export default {
  component: MyComponent,
  title: 'img',
};

// Assume image.png is located in the "public" directory.
export const withAnImage = () => ({
  Component: MyComponent,
  props: {
    src: '/image.png',
    alt: 'my image',
  },
});
```